﻿using BlogApi.Models;
using Microsoft.EntityFrameworkCore;

namespace BlogApi.Data
{
    public class BlogDbContext:DbContext
    {
        public BlogDbContext(DbContextOptions<BlogDbContext> options) : base(options)
        {

        }
        /// 开始映射数据表
        public DbSet<User> Users_table { get; set; }
        public DbSet<Article> Articles_table { get; set; }
        public DbSet<ArticleTag> ArticleTags_table { get; set; }
        public DbSet<ArticleToArticleTag> ArticleToArticleTags_table { get; set; }
        public DbSet<Comment> Comments_table { get; set; }
        public DbSet<Fan> Fans_table { get; set; }
        public DbSet<Like> Likes_table { get; set; }
    }
}
